package com.ly.drivingschool.service;

import com.ly.drivingschool.pojo.Order;
import com.ly.drivingschool.pojo.OrderPage;
import com.ly.drivingschool.pojo.Pager;
import com.ly.drivingschool.pojo.User;

// 订单业务
public interface OrderService {
    // 分页查询
    Pager<OrderPage> findByPager(int page, int size);

    // 模糊查询
    Pager<OrderPage> findByKey(int page, int size, String keyWork);

    // 条件查询
    Pager<OrderPage> findByCondition(int page, int size, String col, String code);

    // 查询一条记录
    OrderPage selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Order record);

    // 添加新的订单
    int insertSelective(Order record);
}
